import { Authority } from '../request'

const { get } = Authority

// 获取当前登录用户的菜单
export const getMenuTree = () => get('/user/menu/v1/queryMenuTree', { headers: { hideNotify: true } })

// 获取当前登录用户的菜单
export const getUserInfo = () => get('/user/userLogin/v1/loginInfo', { headers: { hideNotify: true } })

//选择列表
export const getUserSelect = params => get('/user/userLogin/v1/querySelectList', { params })

// 登出
export const logout = () => get('/user/userLogin/v1/logout', { headers: { hideNotify: true } })


// 组织机构
export const getOrganizationTree = params => get('/user/userOrganization/v1/queryTreeList', { params })
